{% load humanize %}

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="/dlog/js/urchin.js" type="text/javascript"></script>
<script src="/dlog/js/dlog_{{dlog_js_ver}}.js" type="text/javascript"></script>
<link rel="stylesheet" href="/dlog/css/douban.css" />
<title>{% block title %}{% endblock %} - 工作日志</title>
</head>
<body>
<form action="/dlog/search/" method="get" name="dlogsearch">
<div class="spanel">
	<div class="mmpt"><a href="/dlog/">工作日志</a></div>
	<div class="mmp">
		<a href="/dlog/mytodo/" onclick="urchinTracker('/dlog/mytodo/')"><font color="#FF0000"><b>今天要做啥</b></font></a> · 
		<a href="/dlog/list/">列表</a> · 
		<a href="/dlog/add/">新建</a> · 
		<a href="/dlog/dcheck/?off=-1" onclick="urchinTracker('/dlog/dcheck/yestoday/')">（昨天）</a>
		<a href="/dlog/dcheck/" onclick="urchinTracker('/dlog/dcheck/today/')">检视（今天）</a> · 
		<a href="/dlog/pcheck/" onclick="urchinTracker('/dlog/pcheck/myself/')">检视（人）</a> · 
		<a href="/dlog/suggest/"><b>欢迎来拍砖……</b></a>
	</div>
	<br clear="all"/>
	<div class="mmpr">
		<span class="p1">
		{% if loginuser and loginuser.is_authenticated %}
			欢迎&nbsp;{{loginuser.first_name}}&nbsp;{{loginuser.last_name}}&nbsp;|&nbsp;
			{% if first_message %}
				<a href="/dlog/item/{{ first_message.target.id }}/"><font color="#FF0000"><b>你有新消息哦</b></font></a>&nbsp;|&nbsp;
			{% endif%}
			<a href="/dlog/logout">注销</a>&nbsp;|&nbsp;
			<a href="/dlog/changepsw">修改密码</a> 
		{% else %} 你好，请<a href="/dlog/login/">登录</a> {% endif %}</span>
	</div>
	<div class="p1">
		<input type="text" value="" size="32" name="keyword"/>
		<input class="butt" type="submit" value="搜索日志"/>
	</div>
</div>
</form>

<table class="mt"><tbody><tr>
<td valign="top">{% block body %}{% endblock %}</td>
<td width="20"></td>
<td width="30%" valign="top">
{% if flash %}<div class="{% if flash.succ %}flash_succ{% else %}flash_fail{% endif %}"><b>{{flash.flash}}</b></div>{% endif %}

<h1>今天你写了么？</h1>
{% if announces %}<br/>通告板&nbsp;(共{{ all_announces|length }}条)
<div class="sbjtd">{% for ann in announces %}
{% ifequal ann.ntype 1 %}
<b>[{{ann.suggest_by.first_name}}{{ann.suggest_by.last_name}}</b>
{% else %}
[<font color="red"><b>系统</b></font>
{% endifequal %}
&nbsp;@&nbsp;{{ann.create_at|date:""}}] {{ann.content}}<br/>
{% endfor %}</div>
{% endif %}

<br/>是不是忘记了，抓紧时间梳理今天的工作吧
<div class="sbjtd">
{% if blacklist %}
{% for user in blacklist %}{{user.first_name}}{{user.last_name}}&nbsp;{% endfor %}
{% else %}
{% ifequal blacklist None %}名单每天5点50分揭晓，期待中……{% else %}好极了，大家前一天都写日志啦！{% endifequal %}
{% endif %}
</div>

{% block function %}{% endblock %}

{% if todos %}<br/>待做事宜
<div class="sbjtd">{% for todo in todos %}[{{todo.suggest_by.first_name}} {{todo.suggest_by.last_name}}] {{todo}}<br/>{% endfor %}</div>
{% endif %}
</td>
</tr></tbody></table>

<div class="fdiv">
	<div style="color: rgb(119, 119, 119); float: left;">
		© 2007 mydudu.net, all rights reserved [?ICP备???????]
	</div>
	<div style="float: right;">
		{{ now }}
		<a href="http://mydudu.net">关于</a>
		<a href="/dlog/admin/">管理</a>
		<a href="/dlog/report/">报告</a>
		<a href="https://www.google.com/analytics/home/admin?vid=1100&scid=1031989">GA</a>
	</div>
</div>
<script type="text/javascript">
_uacct = "UA-1031989-2";
{% if page_track_addr %}urchinTracker("{{ page_track_addr }}");{% else %}urchinTracker();{% endif %}
</script>
</body>
</html>
